Skip to main content

Unit 4 Exercise 7

Exercise 7: SubSchedule - Concurrent Processes

Objective

To use a Resource to prevent multiple Container jobs from kicking off at the same time.

Summary

Create a Schedule called Process Files. Create 5 new container jobs named File 1, File 2, etc. within this Schedule and assign the SS_Repeating sub-schedule that was created in Exercise 6. These container jobs will also have a Resource Dependency to prevent them from all kicking off at the same time.

Instructions

Create the Resource

  1. In Library > Administration, select Resources.
  2. Click the Add button.
  3. In the Resource pop-up window:
  • In the Name field, enter ProcessFile.
  • In the Description field, enter some documentation.
    • Example: This resource is used in the ProcessFile SubSchedule exercise.
  • In the Max Resources field, enter 1.
  • Click the Save button.
  1. Click Back

Create the Primary Schedule

  1. In Library > Administration, select on Master Schedules.
  2. Click the Add button.
  3. On Master Schedule Definition screen:
  • In the Name field, enter Process Files.
  • In the Documentation field, enter some documentation
    • Example: This is the Parent Schedule.
  • Saturday and Sunday are NOT working days.
  • This schedule does use the Master Holiday Calendar
  • Click the Save button.
  1. Close Studio

Create the Container Jobs

  1. In Library > Administration, select on Master Schedules.
  2. Select the Process Files Schedule.
  3. Click the View button.
  4. Select Add Job in the side menu.
  5. On the Master Job Definition screen:
  • In the Name field, enter File 1.
  • In the Job Type dropdown, select Container.
  • On the Master SubSchedule dropdown, select the SS-Repeating.
  • Click the Save button.
  • Click the Lock icon in the upper right-hand corner.
  • Scroll to and expand the Frequency box.
  • Within the Frequency box, move the Mon-Fri-N Frequency from the Inactive list to the Active list.
  • Click Save.
  1. Click Back.
  2. Utilizing the Copy feature, copy File 1 until you have 5 new jobs with a similar naming convention.
  • Example: File 2, File 3, etc.

Setup Resource Dependency

  1. Select File 1 and select Add Resource Dependency from the side panel.
  2. In the Resource pop-up:
  • Select the ProcessFile Resource from the dropdown list.
  • Enter the value of 1 in the Value box.
  • Click the Save button.
  1. Repeat Steps 16-17 to add Resource Dependency to all 5 jobs.

Build the Schedule

  1. In Operations, build the Process Files (Released) for today and check the results in Processes,

Enterprise Manager

Details

Create the Primary Schedule

  1. Under the Administration topic, Double-Click on Schedule Master.
  2. Click the Add button on the Schedule Master toolbar.
  3. In the Name textbox, enter Process Files.
  4. In the Documentation textbox, enter This is the Parent Schedule.
  5. In the Start Time box, notice the default of 00:00 (midnight).
  6. Keep the defaults selected for the Workdays per Week for the Schedule to run.
  7. Click the Save button on the Schedule Master toolbar and close the Schedule Master tab.

Create a Resource

  1. Under the Administration topic, Double-Click on Resources.
  2. Click the Add button on the Resources toolbar.
  3. In the Name textbox, enter ProcessFile.
  4. In the Documentation textbox, enter This resource is used in the ProcessFile SubSchedule exercise.
  5. In the Max Resources box, enter 1.
  6. Click the Save button on the Resources toolbar and close the Resources tab.
  7. Under the Administration topic, Double-Click on Job Master.
  8. Select the Process Files Schedule.
  9. Click the Add button on the Job Master toolbar.
  10. In the Name textbox, enter Process File 1.
  11. In the Job Type drop-down list, select Container.
  12. On the Schedule to run as SubSchedule drop-down list select the Repeating-SubSchedule.
note
  1. This SubSchedule can be used even though it is used in another Schedule
  1. Click the Save button on the Job Master toolbar.
  2. Click the Frequency tab.
  3. Within the Frequency list frame, click the Add button.
  4. Click inside the option button to Use Existing Frequency.
  5. Select Mon-Fri-N from the drop-down list.
  6. Click Next.
  7. Click Finish.

Setup Resource Dependency

  1. With the Job Master still open, click on the Dependencies tab.
  2. Click on the Threshold/Resource Dependency sub-tab.
  3. Click the Add button under the Threshold/Resource Dependency sub-tab.
  4. Select the ProcessFile Resource from the Threshold/Resource drop-down menu.
  5. Enter the value of 1 in the Value box.
  6. Click OK.

Create Copies of the Container Job

  1. On the Job Master toolbar, click the Copy button or press Ctrl+Insert.

  2. Name the Job Process File 2.

  3. Click OK.

  4. Repeat those steps to create Jobs Process File 3, Process File 4, and Process File 5.

  5. Close the Job Master.

  6. Use the Workflow Designer to verify that all 5 Jobs are tied to the ProcessFile Resource.

  7. Close the Workflow Designer.

  8. Build the Process Files (Released) for today and check the results using the List/Matrix views and the PERT view